From a30c4f4980881ddd8f864cbcef388242008e8d2c Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 30 Jan 2015 18:08:10 +0100 Subject: [PATCH] Escape messages 'word-separator' and 'parentheses' in InfoAction This change will not break the usage of the messages, because there are usually used escaped in mediawiki/core. Change-Id: I049134e2fbfadab04ac228090d17fd18c5baca3d --- includes/actions/InfoAction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index ff31eb67c4..338d9396a8 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -246,13 +246,13 @@ class InfoAction extends FormlessAction { $pageInfo['header-basic'][] = array( $this->msg( 'pageinfo-redirectsto' ), Linker::link( $this->page->getRedirectTarget() ) . - $this->msg( 'word-separator' )->text() . - $this->msg( 'parentheses', Linker::link( + $this->msg( 'word-separator' )->escaped() . + $this->msg( 'parentheses' )->rawParams( Linker::link( $this->page->getRedirectTarget(), $this->msg( 'pageinfo-redirectsto-info' )->escaped(), array(), array( 'action' => 'info' ) - ) )->text() + ) )->escaped() ); } -- 2.20.1